import request from "@/utils/request";

// 查询公共机构指标列表 错误码  20040
export function postInstitutionslist(data) {
  return request({
    url: "/system/institutionsIndex/list",
    method: "post",
    data: data,
  });
}

// // 消费状态查询 错误码 20041
// export function postInstitutionsstatus(data) {
//   return request({
//     url: "/system/institutionsIndex/status",
//     method: "post",
//     data: data,
//   });
// }

// 导出消费状态 错误码 20042
export function postExportData(data) {
  return request({
    url: "/system/institutionsIndex/export",
    method: "post",
    data: data,
  });
}

// // 上报消费数据 错误码 20043
// export function postInstitutionsdata(data) {
//   return request({
//     url: "/system/institutionsIndex",
//     method: "post",
//     data: data,
//   });
// }

// // 用户机构 错误码 20044
// export function getUserinst() {
//   return request({
//     url: "/system/institutionsIndex/getinstitutions",
//     method: "get",
//   });
// }

// 机构查询(全部) 错误码 20045
export function postSelectins(data) {
  return request({
    url: "/system/institutionsIndex/selectinstitutions/all",
    method: "post",
    data: data,
  });
}

// 机构查询（已提交） 错误码 200451
export function postSelectinsdefault(data) {
  return request({
    url: "/system/institutionsIndex/selectinstitutions",
    method: "post",
    data: data,
  });
}

// 查询人均和单位面积及填表人信息 错误码 20046
export function postTabdata(data) {
  return request({
    url: "/system/institutionsIndex/per",
    method: "post",
    data: data,
  });
}

// 修改台账月报-保存 错误码 200481
export function postAddsave(data) {
  return request({
    url: "/system/institutionsIndex/add",
    method: "post",
    data: data,
  });
}

// 提交审核接口-提交 错误码 200482
export function postSubmit(data) {
  return request({
    url: "/system/institutionsIndex/submit",
    method: "post",
    data: data,
  });
}

// 审核台账月报-审核 错误码 20047 status: 0 审核驳回 1 审核通过
export function postAudit(data) {
  return request({
    url: "/system/institutionsIndex/audit",
    method: "post",
    data: data,
  });
}

// 查询审核信息接口 错误码 200471
export function postAuditdetail(data) {
  return request({
    url: "/system/institutionsIndex/audit/info/query",
    method: "post",
    data: data,
  });
}

// 提交人确认接口-确认 错误码 200483
export function postConfirm(data) {
  return request({
    url: "/system/institutionsIndex/confirm",
    method: "post",
    data: data,
  });
}

// 上报台账月报接口 错误码 200484
export function postReport(data) {
  return request({
    url: "/system/institutionsIndex/report",
    method: "post",
    data: data,
  });
}
